package henu.innovation.mapper;

import henu.innovation.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {
    //    查询所有学生
    List<Student> findAllStudents();
    //    通过学号、姓名查询，登录用
    Student login(@Param("number") String number, @Param("name") String name);
    //    通过id查询
    Student findStudentById(@Param("id")int id);
    //    通过id删除
    boolean delete(@Param("id") int id);
    //    修改信息
    boolean updateStudent(Student student);
}
